package mini.ideashare.cms.dao;

import mini.ideashare.cms.model.Category;
import mini.ideashare.cms.model.TB_Item;
import mini.ideashare.cms.model.qc.CategoryQC;
import mini.ideashare.cms.model.qc.TB_ItemQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryDAO {


    int updateCategory(Category category);

    int deleteCategoryById(@Param("id") Long id);

    int insertCategory(Category category);
    List<Category> listCategory(CategoryQC category);
    Long countCategory(CategoryQC category);
}
